package com.firewolf.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者：刘兴
 * 时间:19/2/18
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @Value("${username}")
    private String name;

    @GetMapping
    public String username(){
        return name;
    }
}
